package com.lipy.microweb.health;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.actuate.health.Status;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: lipy
 * @create: 2020-06-16 23:10
 * 自定义健康检查
 **/
@Configuration
public class MicroWebHealthIndicator implements HealthIndicator {
    @Override
    public Health health() {
//        new Health.Builder(Status.DOWN).build();
        return new Health.Builder(Status.UP).build();
    }
}
